import 'dart:math';
import 'package:flutter/material.dart';
import 'package:lib_uikit/lib_uikit.dart';

class GTRtlTransform extends StatelessWidget {
  final Widget child;
  const GTRtlTransform({super.key, required this.child});

  @override
  Widget build(BuildContext context) {
    return Transform(
      transform: Matrix4.rotationY(GTThemeProvider.instance.isRTL() ? pi : 0),
      alignment: Alignment.center,
      child: child,
    );
  }
}
